package com.dcliment.events
{
	import com.dcliment.elements.MetricsElement;
	
	import flash.events.Event;
	
	/**
	 * To send Metrics Elements across swfs or really anywhere
	 * 
	 * @author dcliment
	 * version 1.1
	 */	
	
	public class MetricsEvent extends Event
	{
		public static var TRACK_ELEMENT:String = "track_element";
		
		private var _data:*
		
		public function MetricsEvent(type:String, $data:*, bubbles:Boolean=false, cancelable:Boolean=false) // changed cancelable to true;
		{
			_data = $data;
			
			super(type, bubbles, cancelable);
		}

		public function get data():*
		{
			return _data;
		}
		
	}
}